<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<!-- <view>
			<text class="title">{{title}}</text>
		</view> -->
		<button @click="gotoLogin">开始体验</button>
		<!-- <button @click="gotoUserInterface">用户界面</button> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'ShareYun Album'
			}
		},
		onLoad() {

		},
		methods: {
			gotoLogin: function () {
				uni.navigateTo({
					url: "/pages/login/login",
					// success: res => { console.log(res) },
					// fail: (err) => { console.log(err.errMsg) }
				});
			},
			gotoUserInterface: function () {
				uni.switchTab({
					url: "/pages/userMain/mySpace/mySpace",
					success: res => { console.log(res) },
					fail: (err) => { console.log(err.errMsg) }
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 300rpx;
		width: 300rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	uni-button {
		margin: 5rpx;
	}
</style>
